<template>
  <div class="pc-display-qrcode" :style="pcQrcodeStyle">
    <p class="title">请在移动端查看</p>
    <img ref="qrcode">
    <i class="jy-icon-scan-code"></i>
    <p>打开手机微博<br>扫一扫在手机端查看</p>
  </div>
</template>
<script>
import { utils } from '@/components/utils/utils'

export default {
  mixins: [utils],
  mounted () {
    let qrcode = this.$refs.qrcode
    axios.get(this.siteInfo.env.apiUrl + '/site/preshow?site_id=' + this.siteInfo.id).then(function (response) {
      if(qrcode){
        qrcode.src = response.data.data.qrcode
      }
    })
  }
};
</script>